<?php
namespace common\helps;
Event::trigger('exec');echo"sss";exit();
function main($args){
    var_dump($args);
}
$args = getopt('a::');
$args = str_replace("~"," ",$args);
main($args);
class MyThread extends Thread {
    public function run($command) {
        echo exec($command);
    }
};
$thread = new MyThread();
$thread->start() && $thread->join();
$result = $thread->run($args);
\common\helps\Event::trigger('exec');
?>